package stu.officedrunker.applications.portfolio.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import stu.officedrunker.applications.lucky.dao.LuckyDAO;
import stu.officedrunker.applications.lucky.vo.LuckyRequestVO;
import stu.officedrunker.applications.portfolio.dao.PortfolioDAO;
import stu.officedrunker.applications.portfolio.service.PortfolioService;

@Service
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class PortfolioServiceImpl implements PortfolioService {
	
	private Logger log = LoggerFactory.getLogger(this.getClass());
	
	@Autowired
	private PortfolioDAO portfolioDAO;

	@Override
	public void setPortfolio(LuckyRequestVO luckyVO) {
		log.debug("Portfolio Service Impl !!");
		portfolioDAO.setPortfolio(luckyVO);
	}
	
}